<template>
	<view class="video" @click="govideo(item.videolink)" :style="{paddingRight:`${item.style.paddingRight}px`,paddingLeft:`${item.style.paddingLeft}px`,marginTop:`${item.style.marginTop}px`,marginBottom:`${item.style.marginBottom}px`,height:item.style.height,}">
		<image style="width: 100%;border-radius: 10rpx;" :src="item.videocover" :style="{height:`${item.style.height}px`}" mode=""></image>
		<image class="image" src="/static/video.png" mode=""></image>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				
			}
		},
		props: {
			item: {
				type: Object,
				default: {}
			}
		},
		methods:{
			govideo(url){
				uni.navigateTo({
					url:'/pages/video?url=' + url
				})
			}
		}
	}
</script>

<style lang="scss">
	.video{
		position: relative;
		width: 95%;
		margin:  0 auto;
		.image{
			position: absolute;
			width: 60rpx;
			height: 60rpx;
			left: 0;
			top: 43%;
			right: 0;
			margin: auto;
		}
	}
</style>